gdk/win32/gdkcairocontext-win32.c: Make functions shared in backend
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 1 Apr 2019 06:44:53 +0000 (14:44 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 1 Apr 2019 06:51:13 +0000 (14:51 +0800)
Make gdk_win32_surface_get_queued_window_rect() and
gdk_win32_surface_apply_queued_move_resize() not static functions, as we
want to use them in gdkglcontext-win32.c, to fix resizing and moving.

gdk/win32/gdkcairocontext-win32.c
gdk/win32/gdksurface-win32.h

index 9a12ddd0d3953f8e408bf0e08c73575215c88d97..c0bc2bb6022290d24635705096a29428586f3e6b 100644 (file)
@@ -31,7 +31,7 @@
 
 G_DEFINE_TYPE (GdkWin32CairoContext, gdk_win32_cairo_context, GDK_TYPE_CAIRO_CONTEXT)
 
-static void
+void
 gdk_win32_surface_get_queued_window_rect (GdkSurface *surface,
                                           gint        scale,
                                           RECT       *return_window_rect)
@@ -53,7 +53,7 @@ gdk_win32_surface_get_queued_window_rect (GdkSurface *surface,
   *return_window_rect = window_rect;
 }
 
-static void
+void
 gdk_win32_surface_apply_queued_move_resize (GdkSurface *surface,
                                             RECT        window_rect)
 {
index bdfddeeb24b9897865bd921e3c5e87673f89b336..6caa0d2f25d1e5271c92aa2b977c0194506e9d55 100644 (file)
@@ -384,6 +384,15 @@ void  _gdk_win32_update_layered_window_from_cache (GdkSurface *window,
                                                    gboolean    do_paint);
 
 
+void
+gdk_win32_surface_get_queued_window_rect (GdkSurface *surface,
+                                          gint        scale,
+                                          RECT       *return_window_rect);
+
+void
+gdk_win32_surface_apply_queued_move_resize (GdkSurface *surface,
+                                            RECT        window_rect);
+
 G_END_DECLS
 
 #endif /* __GDK_SURFACE_WIN32_H__ */